tools/xenstore: don't apply write limiting for privileged domain
authorJuergen Gross <jgross@suse.com>
Fri, 31 Jan 2020 14:25:57 +0000 (15:25 +0100)
committerWei Liu <wl@xen.org>
Fri, 31 Jan 2020 16:13:49 +0000 (16:13 +0000)
commit957bd8e7e302f1a0d31c95fc9910429f10a04d54
tree221c5526906f444f28ab6b78ceabacb69ab84c54
parent00ffefb4059171a920209ea838acb969462ad3ba
tools/xenstore: don't apply write limiting for privileged domain

Xenstore write limiting should not be applied to dom0. Unfortunately
write limiting is disabled only for connections via sockets. When
running in a stubdom Xenstore will apply write limiting to dom0, too.
Change that by testing for the domain to be privileged as well.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wl@xen.org>
tools/xenstore/xenstored_domain.c